import Vue from 'vue'
import ElementUI from 'element-ui'              //ElementUI组件库
import 'element-ui/lib/theme-default/index.css' //ElementUI组件库样式
import App from './App'                         //页面组件入口
import router from './router'                   //路由
import store from './store'                     //状态管理器
import * as filters from './filters'            //全局filter
import './permission'                           //权限
import './styles/fonts.scss'                    //字体图标库


Vue.use(ElementUI)

// register global utility filters.
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})


Vue.config.productionTip = false
new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: {App}
})
